package ObserverModel2;

/**
 * Created by Lenovo on 2017/5/16.
 */
public class Test {

    public static void main(String[] args) {
        ConcreteSubject subject = new ConcreteSubject(new WeatherBean("spring", "warm"));

        Observer observer = new Observer("one", subject);
        Observer observer1 = new Observer("two", subject);
        Observer observer2 = new Observer("three", subject);

        // 修改对象
        subject.setSeason("summary");
        subject.setWeather("hot");
    }
}
